package com.mengya.locks;

/**
 * @ClassName LockByteCodeDemo
 * @Description 从字节码角度分析synchronized实现
 * @Author xiongwei.wu
 * @Date 2022/12/28 17:08
 **/
public class LockByteCodeDemo {
    Object object = new Object();

//    public void m1() {
//        synchronized (object) {
//            System.out.println("hello ---- sync");
//            throw new RuntimeException("错误");
//        }
//    }

    public static synchronized void m2() {

    }

    public synchronized void m3() {

    }

    public static void main(String[] args) {

    }
}
